package com.sanke.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LoginController {

	private static Logger logger = Logger.getLogger(LoginController.class);
	
	private static final String LOGIN_PAGE = "login/login";
	
	private static final String MAIN_PAGE = "main/main";
	
	@RequestMapping(value="login.do",method=RequestMethod.GET)
	public String login(){
		return LOGIN_PAGE;
	}
	
	
	@RequestMapping(value="login.do",method=RequestMethod.POST)
	public String loginProcess(){
		
		return "redirect:main.do";
	}
	
	@RequestMapping(value="main.do",method=RequestMethod.GET)
	public String main(){
		return MAIN_PAGE;
	}
	
	@RequestMapping(value="index.do",method=RequestMethod.GET)
	public String index(){
		return "main/index";
	}
	
}

